<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box01 {
      width: 100px;
      height: 100px;
      background-color: palevioletred;
    }

    .box02 {
      width: 10vw;
      height: 10vw;
      background-color: yellowgreen;
    }

    .box03 {
      width: 10%;
      /* height: 10%; */
      padding-top: 10%;
      background-color: navajowhite;
    }
  </style>
</head>

<body>
  <div class="box01">
    盒子1
  </div>
  <div class="box02">
    盒子2
  </div>
  <div class="box03">

  </div>
</body>

</html>